package com.bdzl.admin.test.service;

import com.bdzl.admin.test.service.impl.FeignTestServiceHystrix;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

@FeignClient(name="loanAuth",fallback = FeignTestServiceHystrix.class)
public interface FeignTestService {
    /**
     * 微服务间的调用，OpenFeign测试，获取 loanAuth的配置文件信息
     * @return
     */
    @GetMapping("/loan/Auth/test/config/info")
    String getConfigInfo();

    /**
     * 微服务间的调用，OpenFeign测试，获取 loanAuth的配置文件信息
     * @return
     */
    @GetMapping("/loan/Auth/test/feigntimeout")
    String feigntimeout();

}
